﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model.Sec
{
    /// <summary>
    /// 操作权限类，每个权限抽象为一个实例
    /// </summary>
    public class Operate
    {
        /// <summary>
        /// 操作权限类构造函数
        /// </summary>
        public Operate()
        {
            
        }
        #region Operate的属性
        private bool _PropertyInitialized = false;
        /// <summary>
        /// 是否已初始化所有属性
        /// </summary>
        public bool PropertyInitialized
        {
            get { return this._PropertyInitialized; }
            set { this._PropertyInitialized = value; }
        }
        private string _OperateID;
        /// <summary>
        /// 操作ID
        /// </summary>
        public string OperateID
        {
            get { return _OperateID; }
            set { _OperateID = value; }
        }
        private string _ParentOperateID;
        /// <summary>
        /// 父操作ID
        /// </summary>
        public string ParentOperateID
        {
            get {  return _ParentOperateID; }
            set { _ParentOperateID = value; }
        }
        private string _OperateName;
        /// <summary>
        /// 操作名称
        /// </summary>
        public string OperateName
        {
            get {  return _OperateName; }
            set { _OperateName = value; }
        }
        private string _OperateType;
        /// <summary>
        /// 操作类型
        /// </summary>
        public string OperateType
        {
            get {  return _OperateType; }
            set { _OperateType = value; }
        }
        private string _rightIcon;
        /// <summary>
        /// 是否有子菜单的标识
        /// </summary>
        public string RightIcon
        {
            get { return _rightIcon; }
            set { _rightIcon = value; }
        }
        private string[] _OperateURL;
        /// <summary>
        /// URL
        /// </summary>
        public string[] OperateURL
        {
            get {  return _OperateURL; }
            set { _OperateURL = value; }
        }
        private string _BelongSystem;
        /// <summary>
        /// 模式，CS or BS or other
        /// </summary>
        public string BelongSystem
        {
            get {  return _BelongSystem; }
            set { _BelongSystem = value; }
        }
        private string _TreeOrder;

        public string TreeOrder
        {
            get {  return _TreeOrder; }
            set { _TreeOrder = value; }
        }
        private string _TreeCataLog;
        /// <summary>
        /// 分类，menu,node,folder
        /// </summary>
        public string TreeCataLog
        {
            get {  return _TreeCataLog; }
            set { _TreeCataLog = value; }
        }
        private string _Common;
        /// <summary>
        /// 通用标识
        /// </summary>
        public string Common
        {
            get { return _Common; }
            set { _Common = value; }
        }
        private OperateCollection _Children;
        /// <summary>
        //// 获取子操作
         ////</summary>
        public OperateCollection Children
        {
            get { return new OperateCollection(int.Parse(this._OperateID)); }
        }
        #endregion

    }
}
